home *** CD-ROM | disk | FTP | other *** search
/ PC World Interactive 7 / PC World Interactive 7.iso / program / ctutord.EXE / 56B.C < prev    next >
C/C++ Source or Header  |  1990-08-23  |  248b  |  18 lines

  1. main()
  2. {
  3.     static    char    hello[] = "Hi there";
  4.     printarray(hello);
  5.     printf("%s\n",hello);
  6. }
  7. printarray(string)
  8. char    *string;
  9. {
  10.     int    i;
  11.     while( *string != '\0'){
  12.         printf("%c",*string);
  13.         *string = 'X';
  14.         string++;
  15.     }
  16.     printf("\n");
  17. }
  18.